<?php
/*
 * Created on Apr 12, 2007
 * @author Yannick Naudet
 * @last_modif Apr 15, 2007
 */
 
/**
 * A class for all events. It must be extended by any specific event class.
 */
 abstract class Event {
 	
	/** To specify the instance, which is the source of the event. */
	private $source = null;
	 	
	/**
	 * Creates an Event object, optionnaly specifying the object that sends it.
	 * @param object $source The source object that fires this event.
	 */
	public function __construct($source = null) {
		$this->source = $source;
 	}
 	 		
	/**
	 * @return object The source object that has fired the event. 
	 */
	public function getSource() {
		return $this->source;
	}
 	
 }
 
?>
